﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_admins_requests : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GridView1_DataBound(object sender, EventArgs e)
    {
        
    }
    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow){
            Label con = (Label)e.Row.FindControl("aLabel");
            if ((Boolean)DataBinder.Eval(e.Row.DataItem, "Approved"))
            {                
                con.Text = "<i class=\"icon-ok\"></i>";
            }
            else
            {
                con.Text ="<i class=\"icon-remove\"></i>";
            }
        }
    }
}